﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using HSHLogicLayer;
using HSHLogicLayer.DataWS;

namespace TaskVision
{
    public partial class ManageRakaz : Form
    {
        private State currState;

        private enum State
        {
            insertNew = 1,
            update
        }

        public ManageRakaz()
        {
            InitializeComponent();
            currState = State.insertNew;
        }
        public ManageRakaz(int ID)
        {
            InitializeComponent();
            currState = State.update;
        }

        private void ManageRakaz_Load(object sender, EventArgs e)
        {

            lstCities.DataSource = DataLayerSingleton.Instance().DsLookupTables.Cities.DefaultView;
            lstCities.DisplayMember = DataLayerSingleton.Instance().DsLookupTables.Cities.CityNameColumn.ColumnName;
            lstCities.ValueMember = DataLayerSingleton.Instance().DsLookupTables.Cities.CityIDColumn.ColumnName;

            switch (currState)
            {
                case State.insertNew:
                    break;
                case State.update:

                    break;
                default:
                    break;
            }
        }
    }
}
